<?php
class Mozg_Form
{
	public static function Get($config, Mozg_Property_Params $obj)
	{
		if (!($config instanceof Mozg_Form_Config))
		{
			$config = Mozg_Form_Config::Get($config);
		}
			
		$entityClass = $config->GetClass();
		return new $entityClass($config, $obj);
	}
}
